//
// Created by 86136 on 2024/12/2.
//

#ifndef CHAT_GROUP_HPP
#define CHAT_GROUP_HPP
#include "groupuser.hpp"
#include <string>
#include <vector>
using namespace std;

// 匹配Group表的ORM类
class Group {
public:
    Group(int id=-1, string name="", string desc="") {
        this->id = id;
        this->name = name;
        this->desc = desc;
    }

    void setId(int id_) { this->id = id_;}

    void setName(string name_) { this->name = name_;}

    void setDesc(string desc_) { this->desc = desc_;}


    int getId() { return id;}

    string getName() { return name;}

    string getDesc() { return desc;}

    vector<GroupUser> &getUsers() { return this->users;}

private:
    int id;
    string name;
    string desc;
    vector<GroupUser> users;
};
#endif //CHAT_GROUP_HPP
